<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core' %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<%@include file="../includes/styles.html"%>
<%@include file="../includes/scripts-js.html"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<style type="text/css">
#login {
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -110px;
	margin-top: -70px;
}
</style>
</head>
<body>
	<div class="dropdown clearfix">
		<ul class="dropdown-menu" aria-labelledby="dropdownMenu" role="menu">
			<li class="dropdown-submenu">
				<a href="#" tabindex="-1">Configuration</a>
				<ul class="dropdown-menu">
					<li>
						<a href="#" tabindex="-1">Create New Project</a>
					</li>		
					<li>
						<a href="#" tabindex="-1">Open Project</a>
					</li>								
				</ul>
			</li>
			<li>
				<a href="#" tabindex="-1">Project</a>
			</li>			
		</ul>
	</div>
	<form action="<c:url value="/j_spring_security_check"/>" method="POST">
		<div id="login">
			<h1 style="text-align: center;">Provenance</h1>
			<br/>
			<div class="control-group">
				<label class="control-label" for="inputEmail">Login</label>
				<div class="controls">
					<input type="text" 
						   id="inputEmail" 
						   placeholder="Email"
						   name="j_username">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="inputPassword">Password</label>
				<div class="controls">
					<input type="password" 
						   id="inputPassword" 
						   placeholder="Password"
						   name="j_password">
				</div>
			</div>
			<div class="control-group">
				<div class="controls">
					<button type="submit" class="btn">Sign in</button>
				</div>
			</div>
			<br />
			<c:if test="${param.error eq 'invalid'}">
				<div class="alert alert-error">
					<a class="close" data-dismiss="alert" href="#">x</a>
					<h4 class="alert-heading">Invalid login!</h4>
				</div>
			</c:if>
		</div>
	</form>

</body>
</html>
